package com.yao.po;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class PayOrder {
    private String buyName;//买家姓名
    private String buyPhone;//买家电话
    private List<ShoppingCart> cartList;//购物车列表
    private LocalDateTime deliveryDate;//预计发货日期
    private String remarks;//备注信息
    private String userAddressId;//收货地址id

    public PayOrder() {
    }

    public PayOrder(String buyName, String buyPhone, List<ShoppingCart> cartList, LocalDateTime deliveryDate, String remarks, String userAddressId) {
        this.buyName = buyName;
        this.buyPhone = buyPhone;
        this.cartList = cartList;
        this.deliveryDate = deliveryDate;
        this.remarks = remarks;
        this.userAddressId = userAddressId;
    }

    /**
     * 获取
     * @return buyName
     */
    public String getBuyName() {
        return buyName;
    }

    /**
     * 设置
     * @param buyName
     */
    public void setBuyName(String buyName) {
        this.buyName = buyName;
    }

    /**
     * 获取
     * @return buyPhone
     */
    public String getBuyPhone() {
        return buyPhone;
    }

    /**
     * 设置
     * @param buyPhone
     */
    public void setBuyPhone(String buyPhone) {
        this.buyPhone = buyPhone;
    }

    /**
     * 获取
     * @return cartList
     */
    public List<ShoppingCart> getCartList() {
        return cartList;
    }

    /**
     * 设置
     * @param cartList
     */
    public void setCartList(List<ShoppingCart> cartList) {
        this.cartList = cartList;
    }

    /**
     * 获取
     * @return deliveryDate
     */
    public LocalDateTime getDeliveryDate() {
        return deliveryDate;
    }

    /**
     * 设置
     * @param deliveryDate
     */
    public void setDeliveryDate(LocalDateTime deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    /**
     * 获取
     * @return remarks
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * 设置
     * @param remarks
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    /**
     * 获取
     * @return userAddressId
     */
    public String getUserAddressId() {
        return userAddressId;
    }

    /**
     * 设置
     * @param userAddressId
     */
    public void setUserAddressId(String userAddressId) {
        this.userAddressId = userAddressId;
    }

    public String toString() {
        return "PayOrder{buyName = " + buyName + ", buyPhone = " + buyPhone + ", cartList = " + cartList + ", deliveryDate = " + deliveryDate + ", remarks = " + remarks + ", userAddressId = " + userAddressId + "}";
    }
}
